<%@ Page Language="C#" MasterPageFile="~/Default.master" Title="Jeff Duty | Links"
    CodeFile="Links.aspx.cs" Inherits="Links_aspx" %>

<asp:content id="Content1" contentplaceholderid="Main" runat="server">
    <table border="0" style="width: 100%; height: 100%">
        <tr>
            <td align="center" style="width: 100px" valign="top">
                &nbsp;<table border="0">
                    <tr>
                        <td align="left" style="width: 100px">
    <asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSourceCats" OnItemDataBound="DataList1_ItemDataBound" Width="736px">
        <ItemTemplate>
            
            <h4><%# Eval("LCA_NAME") %></h4>
            <p><%# Eval("LCA_DESC") %></p>
            
            <asp:Repeater DataSourceID="ObjectDataSourceLinks"  ID="LinksByCatList" EnableViewState="false" runat="server" >
            <HeaderTemplate>
            <table border=0 cellpadding=0 cellspacing=0 width=100%>
            </HeaderTemplate>
            <ItemTemplate>
            <tr><td bgcolor="LIGHTGRAY"><a href="<%# Eval("LIN_URL") %>" title="<%# Eval("LIN_ALT") %>"><%# Eval("LIN_DISPLAY") %></a></td></tr>
            <tr><td bgcolor="LIGHTGRAY"><%# Eval("LIN_DESCRIPTION") %></td></tr>
            </ItemTemplate>
            <AlternatingItemTemplate>
            <tr><td bgcolor="gray"><a href="<%# Eval("LIN_URL") %>" title="<%# Eval("LIN_ALT") %>"><%# Eval("LIN_DISPLAY") %></a></td></tr>
            <tr><td bgcolor="gray"><%# Eval("LIN_DESCRIPTION") %></td></tr>
            </AlternatingItemTemplate>
            <FooterTemplate></table></FooterTemplate>
           </asp:Repeater>
           
            <asp:ObjectDataSource ID="ObjectDataSourceLinks" runat="server"
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetLinksByCategory" TypeName="LinkManager">
        <SelectParameters>
            <asp:Parameter  Name="ID" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
    
        </ItemTemplate>
        <SeparatorTemplate>
            <hr />
        </SeparatorTemplate>
    </asp:DataList></td>
                    </tr>
                </table>
   
    
    
   
     
    
    <asp:ObjectDataSource ID="ObjectDataSourceCats" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetLinkCategories"
        TypeName="LinkManager">
    </asp:ObjectDataSource>
            </td>
        </tr>
    </table>
    &nbsp;
   


   
      
</asp:content>
